<?php
if( !ini_get('safe_mode')){
set_time_limit(0);
}else{
ini_set('max_execution_time',10000);
}
require'connect.php';
include 'httplib.class.php';
$ls=new httplib;
$qqselect_sql="select * from qqlist where sfw=2";
$qqselect_result=mysql_query($qqselect_sql);

while($array=mysql_fetch_array($qqselect_result)){
$qq=$array['qq'];
$url=str_replace('sfw.php','','http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);//获取当前网址
$ls->open("{$url}fw.php?qq={$qq}");
$ls->send();
$ls->response();
echo '</div><font size=4>'.$qq.' 任务执行完成!</font><br><br>';
}
?>